package packageComune;
import java.io.IOException;
import java.rmi.Remote;
import java.rmi.RemoteException;

public interface InterfacciaServer extends Remote{

	
	//per quando client manda messaggi a server (login, muovi, cresci)
	
	
	String login(String username,String password)throws RemoteException;
	String creaGiocatore(String username,String password)throws RemoteException;
	String creaRazza(int token,String nomespecie,String tipospecie)throws RemoteException;	
	String accessoPartita(int token)throws RemoteException;	
	String listaGiocatori(int token)throws RemoteException;	
	String classifica(int token)throws RemoteException;	
	String logout(int token)throws RemoteException;	
	String uscitaPartita(int token)throws RemoteException;	
	String mappaGenerale(int token)throws RemoteException;	
	String listaDino(int token)throws RemoteException;	
	String vistaLocale(int token,int idDino)throws RemoteException;	
	String statoDinosauro(int token,int idDino)throws RemoteException;
	String muoviDino(int token,int idDino,int x,int y)throws RemoteException;	
	String cresciDinosauro(int token,int idDino)throws RemoteException;	
	String deponiUovo(int token,int idDino)throws RemoteException;		
	String richiestaTurnoDiChi()throws RemoteException;	
	String passaTurno(int token)throws RemoteException;
	void caricaPartita()throws IOException;
	
	
}
